<?php

class IndexController extends Zend_Controller_Action {

    protected $_arrParam;
    protected $_cache;

    public function init() {
        $this->_arrParam = $this->_request->getParams();

        $this->_arrParam ['cid'] = $this->_request->getParam('cid', '');

        $this->_arrParam ['page'] = $this->_request->getParam('page', 1);

        $this->view->arrParam = $this->_arrParam;

        $this->_cache = Zend_Registry::get('cache');
    }

    public function indexAction() {
        $layoutPath = APPLICATION_PATH . '/templates/games_orange';

        $option = array(
            'layout' => 'home',
            'layoutPath' => $layoutPath
        );

        Zend_Layout::startMvc($option);

        $translate = Zend_Registry::get('Zend_Translate');

        $this->view->title = $translate->_('TITLE_FRONT_INDEX');

        $this->view->headTitle($this->view->title);
        $this->_helper->viewRenderer->setRender('test');
    }

    public function accessdeniedAction() {
        $this->_helper->layout()->disableLayout();
    }

}